import base from "./base"; // 导入接口域名列表
import axios from "../http"; // 导入http中创建的axios实例
import qs from "qs"; // 根据需求是否导入qs模块

const getReceiving = {
  // 查看可添加员工 原来
  get_receiving_area(params) {
    return axios.post(`${base.bd}/admin/receiving_region/lists`, qs.stringify(params));
  },
  add_receiving_area(params) {
    return axios.post(`${base.bd}/admin/receiving_region/saveadd`, qs.stringify(params));
  },
  edit_receiving_area(params) {
    return axios.post(`${base.bd}/admin/receiving_region/saveedit`, qs.stringify(params));
  },
  del_receiving_area(params) {
    return axios.post(`${base.bd}/admin/receiving_region/del`, qs.stringify(params));
  },
  single_receiving_area(params) {
    return axios.post(`${base.bd}/admin/receiving_region/edit`, qs.stringify(params));
  },
  get_receiving_master(params) {
    return axios.post(`${base.bd}/admin/receiving_master/lists`, qs.stringify(params));
  },
  add_receiving_master(params) {
    return axios.post(`${base.bd}/admin/receiving_master/saveadd`, qs.stringify(params));
  },
  edit_receiving_master(params) {
    return axios.post(`${base.bd}/admin/receiving_master/saveedit`, qs.stringify(params));
  },
  del_receiving_master(params) {
    return axios.post(`${base.bd}/admin/receiving_master/del`, qs.stringify(params));
  },
  single_receiving_master(params) {
    return axios.post(`${base.bd}/admin/receiving_master/edit`, qs.stringify(params));
  },
  get_worker_area(params) {
    return axios.post(`${base.bd}/admin/receiving_master_region/lists`, qs.stringify(params));
  },
  add_worker_area(params) {
    return axios.post(`${base.bd}/admin/receiving_master_region/saveadd`, qs.stringify(params));
  },
  del_worker_area(params) {
    return axios.post(`${base.bd}/admin/receiving_master_region/del`, qs.stringify(params));
  },
  get_worker_cate(params) {
    return axios.post(`${base.bd}/admin/receiving_master_cate/lists`, qs.stringify(params));
  },
  add_worker_cate(params) {
    return axios.post(`${base.bd}/admin/receiving_master_cate/saveadd`, qs.stringify(params));
  },
  del_worker_cate(params) {
    return axios.post(`${base.bd}/admin/receiving_master_cate/del`, qs.stringify(params));
  },
  select_order_master(params) {
    return axios.post(`${base.bd}/admin/order/receiving`, qs.stringify(params));
  },
  savecheck_receiving_master(params) {
    return axios.post(`${base.bd}/admin/receiving_master/savecheck`, qs.stringify(params));
  },
};

export default getReceiving;
